<%= form_for(@company) do |f| %>
    <% if @company.errors.any? %>
        <div class="fberrorbox" id="error_explanation">
          <h2><%= pluralize(@company.errors.count, "error") %> prohibited this company from being saved:</h2>

          <ul>
            <% @company.errors.full_messages.each do |msg| %>
                <li><%= msg %></li>
            <% end %>
          </ul>
        </div>
    <% end %>

    <div class="fbbluebox">
      <div class="fbgreybox"><h2>Company Information</h2></div><br />
      <div class="field">
        <%= f.label :name, 'Company name' %><br />
        <%= f.text_field :name %>
      </div>
      <div class="field">
        <%= f.label :address, 'Address no.' %><br />
        <%= f.text_field :address %>
      </div>
      <div class="field">
        <%= f.label :sub_district, 'Sub-district' %><br />
        <%= f.text_field :sub_district %>
      </div>
      <div class="field">
        <%= f.label :district, 'District' %><br />
        <%= f.text_field :district %>
      </div>
      <div class="field">
        <%= f.label :province, 'Province' %><br />
        <%= f.text_field :province %>
      </div>
      <div class="field">
        <%= f.label :zip_code, 'Zip code' %><br />
        <%= f.text_field :zip_code %>
      </div>
      <div class="field">
        <%= f.label :tel, 'Telephone' %><br />
        <%= f.text_field :tel %>
      </div>
      <div class="field">
        <%= f.label :fax, 'Fax' %><br />
        <%= f.text_field :fax %>
      </div>
      <div class="field">
        <%= f.label :email, 'E-mail' %><br />
        <%= f.text_field :email %>
      </div>
      <div class="field">
        <%= f.label :website, 'Website' %><br />
        <%= f.text_field :website %>
      </div>
      <div class="field">
        <%= f.label :type_of_business, 'Type of Business' %><br />
        <%= f.text_field :type_of_business %>
      </div>
      <div class="field">
        <%= f.label :total_employee, 'Total employees' %><br />
        <%= f.text_field :total_employee %>
      </div>
    </div>
    <br />

    <div class="fbbluebox">
      <div class="fbgreybox"> <h2>Officer Information</h2></div> <br />
      <div class="fbgreybox"> Company internship officer </div><br />
      <table><tr><td>
        <div class="field">
          <%= f.label :com_name , 'First name'%><br />
          <%= f.text_field :com_name %>
        </div></td><td>
        <div class="field">
          <%= f.label :com_surname, 'Last name' %><br />
          <%= f.text_field :com_surname %>
        </div>
      </td>
      </tr>
      </table>
      <div class="field">
        <%= f.label :com_position, 'Position' %><br />
        <%= f.text_field :com_position %>
      </div>

      <div class="field">
        <%= f.label :com_department, 'Department' %><br />
        <%= f.text_field :com_department %>
      </div>

      <div class="fbgreybox"> CAMT-Company officer </div><br />
      <table><tr><td>
        <div class="field">
          <%= f.label :camt_name, 'First name' %><br />
          <%= f.text_field :camt_name %>
        </div>
      </td><td>
        <div class="field">
          <%= f.label :camt_surname, 'Last name' %><br />
          <%= f.text_field :camt_surname %>
        </div>
      </td></tr>
      </table>
      <div class="field">
        <%= f.label :camt_position, 'Position' %><br />
        <%= f.text_field :camt_position %>
      </div>

      <div class="field">
        <%= f.label :camt_department, 'Department' %><br />
        <%= f.text_field :camt_department %>
      </div>

      <div class="field">
        <%= f.label :camt_tel, 'Telephone' %><br />
        <%= f.text_field :camt_tel %>
      </div>
    </div>
    <br />

    <div class="fbgreyboxbuttom">
      <div class="actions">
        <%= f.submit %>
      </div>
    </div>
    <br />
<% end %>
